package com.ericom.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ericom.dao.CountryDao;
import com.ericom.model.Country;

@Repository("countryDao")
public class CountryDaoHibernate extends GenericDaoHibernate<Country, Long> implements
		CountryDao {

	
  public CountryDaoHibernate(){
	  super(Country.class);
  }

public List<Country> findByName(String name) {
	
	return this.getHibernateTemplate().find("from Country where name=?",name);
}
	

	

}
